from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
from zope.app.schema.vocabulary import IVocabularyFactory
from zope.interface import implements
from my315ok.xtjxwcontents import xtjxwcontentsMessageFactory as _
#from zope.interface import directlyProvides
#from zope.schema.interfaces import IVocabularyFactory
#from zope.schema.vocabulary import SimpleVocabulary
#from my315ok.fangcan.interfaces import Ihouse
#from Products.CMFCore.utils import getToolByName

bigarea_unit=[
('xiangtanshihexi','xiangtanshihexi',_(u'xiangtanshihexi')),
('xiangtanshihedong','xiangtanshihedong',_(u'xiangtanshihedong')),
('shaoshanshi','shaoshanshi',_(u'shaoshanshi')),
('xiangtanxian','xiangtanxian',_(u'xiangtanxian')),
('xiangxiangshi','xiangxiangshi',_(u'xiangxiangshi')),
  ]

bigarea_terms = [
    SimpleTerm(value, token, title) for value, token, title in bigarea_unit
]

class BigareaVocabulary(object):    
    """ Ad Unit sizes """
    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(bigarea_terms)
BigareaVocabularyFactory = BigareaVocabulary()

           

